package com.tfs.entity;

/**
 * User: chyvok
 * Date: 6/30/11
 * Time: 12:18 AM
 */

public class CompanyPaymentByPeriod {
    private String companyName;
    private Float bankPayment;
    private Float cashPayment;
    private Float totalPayment;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Float getBankPayment() {
        return bankPayment;
    }

    public void setBankPayment(Float bankPayment) {
        this.bankPayment = bankPayment;
        setTotalPayment();
    }

    public Float getCashPayment() {
        return cashPayment;
    }

    public void setCashPayment(Float cashPayment) {
        this.cashPayment = cashPayment;
        setTotalPayment();
    }

    public Float getTotalPayment() {
        return totalPayment;
    }

    public void setTotalPayment() {
        this.totalPayment = this.bankPayment + this.cashPayment;
    }
}
